﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Configuration;

namespace DD_Extensions
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var beta = Convert.ToBoolean(ConfigurationManager.AppSettings["TEST"]);
            if (beta)
            {
                var usersRoles = Roles.GetRolesForUser();
                Label1.Text = String.Format("There are {0} Roles for user {1}<br />", usersRoles.Length, User.Identity.Name);
                foreach (String r in usersRoles)
                {
                    Label1.Text += r + "<br />";
                }
            }
        }
    }
}
